package com.woniu.controller.medicalService;

import com.woniu.service.medicalService.IReservationSetService;
import com.woniu.model.medicalService.entity.ReservationSet;
import com.woniu.model.gh.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

//预约设置表
@RestController
@RequestMapping("/medical_service_reservation_set")
public class ReservationSetController {

    @Autowired
    private IReservationSetService reservationSetService;

    @GetMapping("/findAll")
    public Result<List<ReservationSet>> findAll(){
        List<ReservationSet> list = reservationSetService.list();
        return Result.ok(list);
    }

}
